package com.wbs.shop.nuby.jsbridge;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.wbs.shop.nuby.jsbridge.core.BaseInjected;
import com.wbs.shop.nuby.utils.push.JPushUtils;
import com.wbs.shop.nuby.view.listener.IWebView;


/**
 * Created by zhoucl on 2017/10/24 0024.
 */

public class UserInjected extends BaseInjected {
    public UserInjected(IWebView webView) {
        super(webView);
    }

    public void setTags(JSONObject jsonObject) {
        JPushUtils.setUserTag(JSON.parseArray(jsonObject.getString("tags"), String.class));
    }
//    public String getUserInfo() {
//        return JSON.toJSONString(DataCache.UserCache.getUserBean());
//    }
//
//    public String getToken() {
//        return DataCache.UserCache.getToken();
//    }
}
